"""
break:    跳出整个循环
continue: 跳出本次循环
"""

# 1 - 10 累加求和
sum01 = 0
num = 1
while num <= 10:
    sum01 += num
    num += 1
print(f'1-10累加求和结果: {sum01}')

# 1 - 10 之间偶数累加
sum02 = 0
num = 1
while num <= 10:
    if num % 2 == 0:
        sum02 += num
    num += 1
print(f'1-10之间偶数累加求和结果: {sum02}')

# 输出乘法表
row = 1
while row < 10:
    col = 1
    while row >= col:
        print(f'{row} * {col} = {row * col}', end="\t")
        col += 1
    print()
    row += 1
